﻿using PowerGui.AddOn.Interfaces;
using Quest.PowerGUI.ScriptEditor.Shared;

namespace PowerGui.AddOn.Impl
{
    public class ScriptPosition : IScriptPosition
    {
        private SEPosition _se;

        internal ScriptPosition(SEPosition se)
        {
            _se = se;
        }

        public string FileName
        {
            get { return _se.Document.Filename; }
        }

        public int Line
        {
            get { return _se.Line; }
        }

        public int Column
        {
            get { return _se.Column; }
        }

        public int Offset
        {
            get { return _se.Offset; }
        }
    }
}
